]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
lookingGlass: Fix global key press handler
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 22 Nov 2011 18:28:23 +0000 (19:28 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 22 Nov 2011 21:33:05 +0000 (22:33 +0100)
No idea why connecting a key-press-event to a non-reactive actor
used to work, but some Clutter update broke it. Obvious fix is
to make the actor reactive.

https://bugzilla.gnome.org/show_bug.cgi?id=664582

js/ui/lookingGlass.js

index 495b987eeab8d96712778236846baca61ef85e59..2d9c0541bdec85456a7c02608b25cfd8518b57c9 100644 (file)
@@ -889,7 +889,8 @@ LookingGlass.prototype = {
         this.actor = new St.BoxLayout({ name: 'LookingGlassDialog',
                                         style_class: 'lg-dialog',
                                         vertical: true,
-                                        visible: false });
+                                        visible: false,
+                                        reactive: true });
         this.actor.connect('key-press-event', Lang.bind(this, this._globalKeyPressEvent));
 
         this._interfaceSettings = new Gio.Settings({ schema: 'org.gnome.desktop.interface' });